package cn.goktech.utils;

import cn.goktech.pojo.User;
import cn.goktech.controller.UserController;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("cn.goktech")
public class SpringConfig {
    @Bean
    public User userId(){
        User user = new User();
        return user;
    }
    @Bean
    public UserController userCon(){
        return new UserController();
    }
}
